{template wl_header}
<link href='{RES}css/member.css' rel='stylesheet' type='text/css' />
<div id="shop_page_contents">
<div id="cover_layer"></div>
	{template wl_menu}
  
	<div id="order_detail">
		<div class="item">
			<ul>
				<li>订单号：{$order['ordersn']}</li>
				<li>订单时间: {php echo date('Y-m-d H:i:s',$order['createtime'])}</li>
				<li>订单状态: {if $order['status']==0}待确认{elseif $order['status']==1}已确认{elseif $order['status']==3}已完成{elseif $order['status']==-1}订单失效{/if}</li>
				<li>订单数量:<strong class="fc_red">{$order['totalnum']}</strong></li>
				<li>订单总价:<strong class="fc_red">￥{$order['totalprice']}</strong></li>
				<li>付款方式: {if $order['paytype']==1}余额支付{elseif $order['paytype']==2}在线支付{elseif $order['paytype']==3}现金支付{else}未知方式{/if}{if $order['ispay']==1}<strong class="fc_red">【已付款】</strong>{else}【未支付】{/if}</li>				
				<li>就餐类型: {if $order['order_type']==2}店内就餐【桌号:{$order['desk']}】{else}外卖外送{/if}</li>
				{if  $order['order_type']!=2}<li>就餐类型: {if $order['sendstatus']==1}<strong class="fc_red">已经配送</strong>{else}未配送{/if} </li>{/if}
 				<li>订单备注: {$order['remark']}</li>
			</ul>
		</div>
		<div class="item">
			<ul>
				<li>姓名: {$order['guest_name']}</li>
				<li>手机：{$order['tel']}</li>
				{if !empty($order['guest_address'])}<li>地址：{$order['guest_address']}</li>{/if}
			</ul>
		</div>

		<div class="item">
			{loop $row $row2}
			<div class="pro">
				<div class="img">
				<a href="{php echo $this->createMobileUrl('wldetail', array('goodsid' => $row2['id']));}"><img src="{$_W['attachurl']}{$row2['thumb']}"></a></div>
				<dl class="info">
					<dd class="name"><a href="{php echo $this->createMobileUrl('wldetail', array('goodsid' => $row2['id']));}">{$row2['title']}</a></dd>
					<dd>价格:￥{$row2['marketprice']}</dd>
					<dd>数量:{$row2['total']}</dd>
 				</dl>
				<div class="clear"></div>
			</div>
			{/loop}
			<div class="total_price">产品总价:<span>￥{$order['totalprice']}</span></div>			
		</div>
		<table style="width:100%"><tr>
		{if $order['status']==1}
		<td><div class="payment"><a href="{php echo $this->createMobileUrl('show', array('status'=>2,'orderid' => $orderid,'secretid'=>$secretid));}">确认订单</a></div></td>
		{/if}
		{if $order['status']!=3}
		<td><div class="payment"><a href="{php echo $this->createMobileUrl('show', array('status'=>-1,'orderid' => $orderid,'secretid'=>$secretid));}">取消订单</a></div></td>
		{/if}
		</tr></table>
	</div>
 </div>

